<template>
  <div class="d-body m-t-2 b-c">
    <router-link :to="{ name: 'detail', params: { id: body.id } }"
      ><div class="wrap">
        <h3 class="a-title ofh">
          {{ body.title }}
        </h3>
        <article class="article">
          {{ body.article }}
        </article>
      </div>
    </router-link>
  </div>
</template>

<script>
export default {
  name: "DBody",
  props: {
    body: {
      type: Object,
      default: () => ({}),
    },
  },
};
</script>

<style lang="scss" scoped>
.d-body {
  .a-title {
    font-weight: bold;
  }
  a {
    &:hover {
      color: inherit;
    }
  }
  .article {
    line-height: 1.5;
  }
  .wrap {
    padding: 0 2rem 2rem 2rem;
  }
}
</style>